<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/layui-v2.6.8/layui/css/layui.css}" media="all">
</head>
<body>
<form th:action="@{/user/update}" method="post">
    <tbody>
    <tr th:object="${user}">
        <div class="layui-inline">
            <label class="layui-form-label">学号</label>
            <td class="layui-input-inline">
                <input th:field="*{id}" type="tel" name="id" lay-verify="required|phone" autocomplete="off" class="layui-input" placeholder="请输入id">
            </td>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">姓名</label>
            <td class="layui-input-inline">
                <input  th:field="*{name}" type="tel" name="name" lay-verify="required|phone" autocomplete="off" class="layui-input" placeholder="请输入姓名">
            </td>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">年龄</label>
            <td class="layui-input-inline">
                <input th:field="*{age}" type="tel" name="age" lay-verify="required|phone" autocomplete="off" class="layui-input" placeholder="请输入年龄">
            </td>
        </div>
    </tr>
    </tbody>

    <input  type="submit" value="修改" class="layui-btn layui-btn-normal">
</form>
</body>
</html>
